import { Response } from "express"

// common response
export const r = {
	success: (res: Response, message: string, data?: any) => 
		res.status(200).send({
			success: true,
			message,
			data
		}),
	failure: (res: Response, message: string, data?:any) => 
		res.status(500).send({
			success: false,
			message,
			data
		})
}